import numpy as np
import matplotlib.pyplot as plt

MATH_INPUT_ARRAY_LEN = 64

# input.
arm_math_input_V2_f32 = []
for i in range(MATH_INPUT_ARRAY_LEN):
    arm_math_input_V2_f32.append(0.1 * i + 0.1)

in_x = np.array(arm_math_input_V2_f32)

# output.
out_ln = np.log(in_x)
out_exp = np.exp(in_x)
out_exp_inv = np.exp(-1*in_x)

# print.
print('ln()')
print(out_ln)
print('exp()')
print(out_exp)
print('exp_inv()')
print(out_exp_inv)

# display.
fig, axs = plt.subplots(1,3)
axs[0].plot(in_x, out_ln,  color='red', marker='.')
axs[1].plot(in_x, out_exp, color='green', marker='.')
axs[2].plot(in_x, out_exp_inv, color='blue', marker='.')
plt.show()
